package game.sprite.collision;

import sprite.ExplodingSprite;
import sprite.MovableSprite;


public class ExplodingSpriteCollisionBehavior extends CollisionBehavior {

    private ExplodingSprite mySprite;

    public ExplodingSpriteCollisionBehavior (ExplodingSprite collidable) {
        super(collidable);
        mySprite = collidable;
    }

    @Override
    public void collide (MovableSprite collidable) {
        mySprite.explode();

    }

    @Override
    public void collide (ExplodingSprite collidable) {
        mySprite.explode();

    }

}
